package rui.game.component.function;

import lombok.Setter;

import javax.swing.*;
import java.awt.*;
import java.awt.event.ActionListener;

/**
 * 作弊
 *
 * @author 赵睿
 */
@Setter
public class Cheat extends JButton {
    public Cheat() {
        super("作弊");
        this.setFont(new Font("楷体", Font.PLAIN, 12));
    }

    public static Cheat init(Cheat cheat, ActionListener actionListener) {
        if(cheat==null){
            cheat=new Cheat();
            cheat.addActionListener(actionListener);
        }
        return cheat;
    }
}
